<template>
    <div>
        <el-button @click="addCount">点击一次数字加1</el-button> 
        <br/>
        一共点击了{{count}}次
    </div>
</template>

<script>
export default {
  name: "HomeEvent",
  data: function() {
    return {
      count: 0
    };
  },
  methods: {
    addCount(e) {
      this.count = this.count + 1;
      console.log(e)
    }
  }
};
</script>

<style>

</style>
